import request from '@/utils/request'
import axios from 'axios'

// 获取聊天记录
export function api_getChatList(params, that) {
  return request.get('/chats/get_chat_list', {
    params,
    cancelToken: new axios.CancelToken(function executor(c) {
      that.cancelChatListFunc = c
    })
  })
}